package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 邀约表单
 * </p>
 *
 * @author 小啊刚
 * @since 2021-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_invitation_form")
@ApiModel(value="CrmInvitationForm对象", description="邀约表单")
public class CrmInvitationForm extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "表单id")
    @TableField("form_id")
    private Integer formId;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "客户/公司名称")
    @TableField("crm_name")
    private String crmName;

    @ApiModelProperty(value = "微信")
    @TableField("we_chat")
    private String weChat;

    @ApiModelProperty(value = "qq")
    @TableField("qq")
    private String qq;

    @ApiModelProperty(value = "座机号")
    @TableField("phone_number")
    private String phoneNumber;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "自定义字段")
    @TableField("define_fields")
    private String defineFields;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "签到时间")
    @TableField("sing_date")
    private LocalDateTime signDate;

    @ApiModelProperty(value = "短信验证码")
    @TableField(exist = false)
    private String smsCode;

    @ApiModelProperty(value = "图片验证码")
    @TableField(exist = false)
    private String imgCode;

    @ApiModelProperty(value = "活动名称")
    @TableField(exist = false)
    private String activityName;

    @ApiModelProperty(value = "表单名称")
    @TableField(exist = false)
    private String formName;

    @ApiModelProperty(value = "商机标题")
    @TableField(exist = false)
    private String businessTitle;

    @ApiModelProperty(value = "分享人id")
    @TableField("share_user_id")
    private Integer shareUserId;

    @ApiModelProperty(value = "分享人姓名")
    @TableField("share_user_name")
    private String shareUserName;
}
